#include<bits/stdc++.h>
using namespace std;


int main(){
    int m,n;
    cin>>m>>n;
    int hash[10] ={0};//统计最后的结果

    for(int i = m;i<=n;i++){
        int tmp = i;
        while(tmp){
            int ret = tmp%10;
            hash[ret]++;
            tmp/=10;
        }
    }
    for(int i = 0;i<10;i++){
        cout<<hash[i]<<" ";
    }


    return 0;
}